package com.zhou.JavaAndroidFirm.constract;

import com.zhou.JavaAndroidFirm.base.BaseModel;
import com.zhou.JavaAndroidFirm.base.BasePresenter;
import com.zhou.JavaAndroidFirm.bean.NewsSummary;

import java.util.List;

import rx.Observable;

/**
 * @author Administrator
 * @date 2018/7/16 0016
 * @des
 */
public interface NewsListConstract {
    interface View extends BaseView {
        //返回获取的新闻
        void returnNewsListData(List<NewsSummary> newsSummaries);
    }

    interface Model extends BaseModel {
        //请求获取新闻
        Observable<List<NewsSummary>> getNewsListData(String type, final String id, int startPage);
    }

    abstract class Presenter extends BasePresenter<View, Model> {
        public abstract void getNewsListData(String type, final String id, int startPage);
    }
}
